import java.io.*;
import java.sql.SQLException;

/**
 * @ClassName test
 * @Description TDD
 * @Author 混沌酱
 * @Date 2023-08-08 11:45
 * @Version 1.0
 **/
public class test {
    public static final String URL = "jdbc:mysql://192.168.101.32:3306/zt_manage";
    public static final String USER = "root";
    public static final String PASSWORD = "123456";

    private static final String CLASS_PATH_Entity = "/com/yyf/Entity";
    private static final String CLASS_PATH_Repository = "/com/yyf/Repository";

    public static void main(String[] args) {
        Generator generator=new Generator
                .Builder(URL,USER,PASSWORD)
                .setSwagger("true")
                .setEntityAddress(CLASS_PATH_Entity)
                .setRpositoryAddress(CLASS_PATH_Repository)
                .setTableName("*")
                .build();
        generator.exec();
    }
}
